// 更改快件用户签收时间状态
const cloud = require('wx-server-sdk')
cloud.init({
  env: cloud.DYNAMIC_CURRENT_ENV
})
const db = cloud.database()
exports.main = async (event, context) => {
  var id=event.id
  var usersure_time=event.usersure_time
  try {
    return await db.collection('express').doc(id).update({
      // data 传入需要局部更新的数据
      data: {
        usersure_time:usersure_time
      }
    })
  } catch(e) {
    console.error(e)
  }
}